<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8">
      <title>构造对象</title>
   </head>
   <body>

      <script>
         function Goods (name,price,count){
            this.name = name;
            this.price = price;
            this.count = count;
         }
         const mi = new Goods('小米',5000,1)
         console.log(mi)

      </script>
   </body>
</html>